package com.coldchain.admin.config.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 不同地区各车型收费表
 * </p>
 *
 * @author fangliai
 * @since 2018-10-25
 */
@TableName("ch_fee_scale")
public class FeeScale implements Serializable, Cloneable {

    private static final long serialVersionUID = 1L;

    /**
     * Id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 有效里程数
     */
    @TableField("defalutKm")
    private Integer defalutKm;

    /**
     * 超出里程价格
     */
    @TableField("exceedPrice")
    private BigDecimal exceedPrice;

    /**
     * 同城配送起步价
     */
    @TableField("wideCityPrice")
    private BigDecimal wideCityPrice;

    /**
     * 城际配送起步价
     */
    @TableField("interCityPrice")
    private BigDecimal interCityPrice;

    /**
     * 指定地区
     */
    @TableField("adecode")
    private String adecode;


    /**
     * 指定车型
     */
    @TableField("carTypeId")
    private Long carTypeId;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private Long createTime;

    /**
     * 创建人
     */
    @TableField("createBy")
    private String createBy;

    /**
     * 修改时间
     */
    @TableField("modTime")
    private Long modTime;

    /**
     * 修改人
     */
    @TableField("modBy")
    private String modBy;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getDefalutKm() {
        return defalutKm;
    }

    public void setDefalutKm(Integer defalutKm) {
        this.defalutKm = defalutKm;
    }

    public BigDecimal getExceedPrice() {
        return exceedPrice;
    }

    public void setExceedPrice(BigDecimal exceedPrice) {
        this.exceedPrice = exceedPrice;
    }

    public BigDecimal getWideCityPrice() {
        return wideCityPrice;
    }

    public void setWideCityPrice(BigDecimal wideCityPrice) {
        this.wideCityPrice = wideCityPrice;
    }

    public BigDecimal getInterCityPrice() {
        return interCityPrice;
    }

    public void setInterCityPrice(BigDecimal interCityPrice) {
        this.interCityPrice = interCityPrice;
    }

    public String getAdecode() {
        return adecode;
    }

    public void setAdecode(String adecode) {
        this.adecode = adecode;
    }

    public Long getCarTypeId() {
        return carTypeId;
    }

    public void setCarTypeId(Long carTypeId) {
        this.carTypeId = carTypeId;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Long getModTime() {
        return modTime;
    }

    public void setModTime(Long modTime) {
        this.modTime = modTime;
    }

    public String getModBy() {
        return modBy;
    }

    public void setModBy(String modBy) {
        this.modBy = modBy;
    }


    @Override
    public FeeScale clone()  {
        FeeScale feeScale=null;
        try{
            feeScale= (FeeScale) super.clone();
        }catch (CloneNotSupportedException e){
            e.printStackTrace();
        }
        return feeScale;
    }

    @Override
    public String toString() {
        return "FeeScale{" +
        "id=" + id +
        ", defalutKm=" + defalutKm +
        ", exceedPrice=" + exceedPrice +
        ", wideCityPrice=" + wideCityPrice +
        ", interCityPrice=" + interCityPrice +
        ", adecode=" + adecode +
        ", carTypeId=" + carTypeId +
        ", createTime=" + createTime +
        ", createBy=" + createBy +
        ", modTime=" + modTime +
        ", modBy=" + modBy +
        "}";
    }
}
